<?php
namespace Admin\Model;
use Think\Model;
class AuthruleModel extends Model{
	public $_validate	=	array(
		array('title','require','标识名称必须存在'),
		array('name','require','规则标识必须存在'),
		array('name','','规则标识必须唯一',self::EXISTS_VALIDATE,'unique',self::MODEL_BOTH),
		);

	public $_auto		=	array(
		array('password','md5',self::MODEL_BOTH,'function'),
		array('logintime','time',self::MODEL_UPDATE,'function'),
		array('createtime','time',self::MODEL_INSERT,'function'),
		);
}